<?php

namespace App\Presenters;

use App\Transformers\PermissionTransformer;
use Prettus\Repository\Presenter\FractalPresenter;

use App\Repositories\PermissionRepositoryEloquent;

/**
 * Class PermissionPresenter
 *
 * @package namespace App\Presenters;
 */
class PermissionPresenter extends FractalPresenter
{
    protected $permission;

    public function __construct(PermissionRepositoryEloquent $permission)
    {
        $this->permission = $permission;
    }

    /**
     * Transformer
     *
     * @return \League\Fractal\TransformerAbstract
     */
    public function getTransformer()
    {
        return new PermissionTransformer();
    }
}
